//
//  PopCatPageDataTool.m
//  MindBox
//
//  Created by MS on 16-1-11.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "PopCatPageDataTool.h"
#import "LGHttpTool.h"
#import "INTERFACE.h"
@implementation PopCatPageDataTool
+ (void)popCatPageDataWithCat_id:(NSString *)cat_id Success:(void (^)(PopCatPage  * data))success  failure:(void (^)( NSError *error))failure
{
    NSString * url = PopCatPage_URL(cat_id);
    
    [LGHttpTool GET:url parameters:nil success:^(id responseObject) {
        
        PopCatPageModel * data = [PopCatPageModel mj_objectWithKeyValues:responseObject];
        PopCatPage * giftdata = data.data;
        
        if (success) {
            
            success(giftdata);
        }
        
    } failure:^(NSError *error) {
        
        if (failure) {
            failure(error);
        }
    }];
}
@end
